/*
 * Filename:    AuditToWarningDAOImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年12月29日
 */
package com.paic.mhis.hcpms.warning.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.hcpms.warning.dao.AuditToWarningDAO;
import com.paic.mhis.hcpms.warning.dto.HcpmsWarnTargetDTO;
import com.paic.mhis.hcpms.warning.dto.HcpmsWarningDTO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("auditToWarningDao")
public class AuditToWarningDAOImpl extends BaseDAO implements AuditToWarningDAO {

	public List<HcpmsWarningDTO> queryAuditToWarningData() {
		return (List<HcpmsWarningDTO>) this._queryForList("warning.auditToWarning", null);
	}

	public int queryAuditToWarningCount(Map<String, String> paramsMap) {
		return this._getInt("warning.auditToWarningCheck", paramsMap);
	}

	public List<HcpmsWarnTargetDTO> queryAuditToWarningTargetData(String taskCode) {
		return (List<HcpmsWarnTargetDTO>) this._queryForList("warning.auditToWarningTarget", taskCode);
	}

	public void updateAuditToWarningData() {
		this._update("warning.updateAuditToWarning");

	}

}
